package service

import (
	"context"
	"monoblog/common/register"
	"monoblog/domain/dto"
	"monoblog/domain/model"
)

func GetFeedbackService() FeedbackService {
	return register.GetInstance[FeedbackService]("FeedbackService")
}

type FeedbackService interface {
	// SubmitFeedback 提交反馈
	Add(ctx context.Context, form dto.FeedbackReqForm) error

	// FindListByUserId 根据用户ID查询反馈列表
	FindListByUserId(ctx context.Context, userId string) ([]*model.Feedback, error)

	FindList(ctx context.Context) ([]*model.Feedback, error)
}
